<?php
header("content-type:text/html;charset=utf-8");
// var rt_id;  //id值
// var rt_name = char4(':"','',char1('"name"',",",massage1)); //标题
// var rt_img = char4(':"','',char1('"poster"',",",massage1));; //宣传图片的调用地址
// var rt_price=[];   //票价 rt_price_last
// var rt_price_type=[]; //出票的形式
// var rt_position;    //演出的场馆
// var rt_short_name = char4(':"','',char1('"shortname"',",",massage1)); //演出的宣传名
// var rt_position_jt; //演出地址
// var rt_position_pic;//演出地址的图片
// var rt_position_src;//演出地址的超链接
// var rt_show_time=[];//演出的时间
// var rt_show_date=char4(':"','',char1('"timeRange"',",",massage1));//演出时间跨度：
// var cart_number;//数量
// var rt_city_id = char2(":","",char1("cityId",",",massage1)); //演出的城市
// var rt_category_id = char2(":","",char1("categoryId",",",massage1));//演出的类型
// var rt_show_more ;//演出的详情
// var rt_position_adshow;//演出地址场馆介绍
$rt_id=$_POST['rt_id'];
$rt_name=$_POST['rt_name'];
$rt_img=$_POST['rt_img'];
$rt_price=$_POST['rt_price'];
$rt_price_type=$_POST['rt_price_type'];
$rt_position=$_POST['rt_position'];
$rt_short_name=$_POST['rt_short_name'];
$rt_position_jt=$_POST['rt_position_jt'];
$rt_position_pic=$_POST['rt_position_pic'];
$rt_position_src=$_POST['rt_position_src'];
$rt_show_time=$_POST['rt_show_time'];
$rt_show_date=$_POST['rt_show_date'];
$cart_number=$_POST['cart_number'];
$rt_city_id=$_POST['rt_city_id'];
$rt_category_id=$_POST['rt_category_id'];
$rt_show_more=$_POST['rt_show_more'];
// $rt_show_more=$_POST['rt_show_more'];
// $rt_position_adshow=$_POST['rt_position_adshow'];

$link=mysqli_connect('localhost','root','','show1');

mysqli_set_charset($link,"utf8");

$sql="insert into goods2 values($rt_id,'$rt_name','$rt_img','$rt_price',
'$rt_price_type','$rt_position',
'$rt_short_name','$rt_position_jt','$rt_position_pic',
'$rt_position_src','$rt_show_time','$rt_show_date',
'$cart_number','$rt_city_id','$rt_category_id','$rt_show_more'  
)";

$result=mysqli_query($link,$sql);

if($result){
    echo "1";
}else{
    echo "0";
}
mysqli_close($link);




?>